﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class user
    {
        private int id = 987654321;
        private string username = "六六";
        private string password = "wo880";

        public void UserClasses()
        {
            Console.WriteLine("用户的账号是:{0}"+"\n"+"用户名是:{1}"+"\n"+"用户的密码是:{2}"+"\n",this.ID,this.UserName,this.PassWord);
        }
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }

        public string UserName
        {
            get { return this.username; }
            set { this.username = value; }
        }

        public string PassWord
        {
            get { return this.password; }
            set { this.password = value; }
        }
        //getter
        //public int GetID()
        //{
        //    return this.ID;
        //}
        //setter
        //public void SetID(int value) 
        //{
        //    this.ID = value;
        //}
    }
}
